<f:layout name="Default" />
<f:section name="Content">
<ul class="ul_mainmenu">
	<li><f:link.action controller="Standard" action="index">Start</f:link.action></li>
    <li><f:link.action controller="Login" action="index">Login</f:link.action></li>
</ul>
<ul class="ul_galerie">
<f:for each="{gallerynames}" as="galleryname" key="number">
    <li>
    	<f:link.action controller="standard" action="show" arguments="{gallery: galleryname}" class="a_gnme">{galleryname.galleryname}</f:link.action><f:link.action controller="Gallery" action="ajaxedit" arguments="{gallery: galleryname}" class="bn_eddit">edit</f:link.action>
    </li>
</f:for> 
	<li class="li_add"><f:link.action controller="Gallery" action="ajaxnew" arguments="{gallery: galleryname}" class="bn_add">add</f:link.action></li>
</ul>
<ul class="ul_galerie">
<f:for each="{images}" as="image" key="number">
    <li>
    	<img src="{f:uri.resource(resource: image.originalResource)}" style="max-width: 100%"/>
    </li>
</f:for> 
</ul>
<div id="imgupload" data-url="<f:uri.action action="ajaxnew" controller="Image" arguments="{gallery: galleryname}" />">

</div>
</f:section>